package com.tanhua.manage.controller;

import com.tanhua.manage.service.VideoService;
import com.tanhua.manage.vo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("manage")
public class VideoController {
    @Autowired
    private VideoService videoService;

    @GetMapping("videos")
    public PageResult queryVideo(@RequestParam("page")Integer page,
                                 @RequestParam("pagesize")Integer pageSize,
                                 @RequestParam("uid")Long id){
        return this.videoService.queryVideo(page,pageSize,id);
    }
    @GetMapping("logs")
    public Object queryLogs(@RequestParam("uid")Long id,
                            @RequestParam("page")Integer page,
                            @RequestParam("pagesize")Integer pageSize,
                            @RequestParam("sortProp")String sortProp,
                            @RequestParam("sortOrder")String sortOrder){
        return null;
    }
}
